package com.jdjc.auth.domin.convert;

import com.jdjc.auth.domin.entity.AuthRoleBO;
import com.jdjc.auth.domin.entity.AuthUserBO;
import com.jdjc.auth.infra.basic.entity.AuthRole;
import com.jdjc.auth.infra.basic.entity.AuthUser;
import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;

import java.util.List;

/**
 * 该接口使用了 @Mapper 注解。这个接口与 MapStruct 库一起使用，该库是一个 Java 注解处理器库，用于自动生成 Java 对象之间的映射代码。
 */
@Mapper
public interface AuthRoleDominConverter {
    AuthRoleDominConverter INSTANCE= Mappers.getMapper(AuthRoleDominConverter.class);


    AuthRole convertBOToEntity(AuthRoleBO authRoleBO);
    AuthRoleBO convertEntityToBO(AuthRole authRole);
    List<AuthRoleBO> AuthRoleListToBOList(List<AuthRole> authRoleList);

}
